type Box<T> = {
    name: T
    }
    let b: Box<number> = {
    name: 123,
    }
    interface Result{
    status: number,
    data: string
    }
    let r:Result ={
        status:12,
        data:"ok"
    }
    interface Result {
        status: number;
        data: string;
    }
    let rResult = {
        status: 12,
        data: "ok"
    }
    interface Result1<T> {
        status: number;
        data: T;
    }
    let r1: Result1<string> = {
        status: 12,
        data: "ok"
    }
    let r2: Result1<number> = {
        status: 13,
        data: 56
    }
    let r3: Result1<{ name: string; age?: number }> = {
        status: 89,
        data: {
            name: "zs",
            age: 18
        }
    }
type Result2<T = string> = {
    name: T
}
let r4: Result2 = {
    name: "zs"
}
let r5: Result2<number> = {
    name: 78
}
type Result3<T = unknown> = {
    name: T
}
let r6: Result3 = {
    name: "er"
};
//Ts内置了几个类型工具，可以改变类型
